package baseFx.common.utils;

public class ExceptionUtils {
    public static RuntimeException toRuntime(Throwable e) {
        if (e instanceof RuntimeException) {
            return ((RuntimeException) e);
        }
        return new RuntimeException(e);
    }
}
